home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
Archives
/
ForCLI
/
capstest.readme
< prev
next >
Wrap
Text File
|
1996-09-26
|
1KB
|
34 lines
Short: Reports caps lock status, useful for scripts etc.
Author: lauri.aalto@fipnet.fi
Uploader: lauri.aalto@fipnet.fi
Type: util/cli
I needed a simple program for my scripts which would examine the status of
the caps lock key and report it so the script could act respectively. After
a quick scan over my file base I was unable to find such a tool so I
decided to write one of my own. Here's the result.
Usage:
if `capstest` eq 1 ; capstest returns either 0 or 1
echo "Caps lock was active"
else
echo "Caps lock was inactice"
endif
Source code compilable at least with DICE 3.0 has been included. Just type
'execute capstest.c' to compile. Feel free to do whatever with these files
- they're all public domain.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
1360 679 50.0% 02-Dec-94 20:34:40 capstest.c
730 427 41.5% 02-Dec-94 20:40:12 capstest.readme
472 355 24.7% 02-Dec-94 20:34:54 capstest
45 43 4.4% 02-Dec-94 20:41:54 file_id.diz
-------- ------- ----- --------- --------
2607 1504 42.3% 02-Dec-94 21:22:20 4 files